<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<div class="header">
	<h2>
		关键指标信息<span><font color="red">（* 为必填项）</font> </span>
	</h2>
</div>
<form:form commandName="model" cssClass="validate" id="settingForm"
	action="kpi/setting/save">
	<form:hidden path="id" />
	<table class=" form-table">
		<tbody>

			<tr>
				<td class="td1">模块：</td>
				<td class="td2"><isperp:dictSelector id="moduleName"
						typeCode="KPI_MODULE" name="moduleName" codeValue="true"
						selectedValue="${model.moduleName }" dictCssClass="required"
						hasEmptyValue="false"></isperp:dictSelector>
				</td>
			</tr>
			<tr>
				<td class="td1">指标类型：</td>
				<td class="td2"><isperp:dictSelector id="type"
						typeCode="KPI_TYPE" name="type" codeValue="true"
						selectedValue="${model.type }" dictCssClass="required"
						hasEmptyValue="false"></isperp:dictSelector></td>
			</tr>
			<tr>
				<td class="td1">考核对象：</td>
				<td class="td2"><form:input path="checkObject"
						cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">标题：</td>
				<td class="td2"><form:input path="title" cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">指标说明：</td>
				<td class="td2"><form:textarea path="description"
						cssClass="required" /></td>
			</tr>
			<tr>
				<td class="td1">排序：</td>
				<td class="td2"><form:input path="orderNum"
						cssClass="number required" /></td>
			</tr>

			<tr>
				<td class="td1">查询字段：</td>
				<td class="td2"><form:textarea path="queryColumn" /></td>
			</tr>
			<tr>
				<td class="td1">查询来源：</td>
				<td class="td2"><form:input path="queryFrom"
						cssClass="required" /></td>
			</tr>

			<tr>
				<td class="td1">查询条件：</td>
				<td class="td2"><form:textarea path="queryWhere" /></td>
			</tr>

			<tr>
				<td class="td1">分组条件：</td>
				<td class="td2"><form:textarea path="queryGroup" /></td>
			</tr>
			<tr>
				<td class="td1">时间范围字段：</td>
				<td class="td2"><form:input path="queryDateColumn"
						cssClass="required" /></td>
			</tr>
			<tr>
				<td class="td1">显示方式：</td>
				<td class="td2"><isperp:dictSelector id="showType"
						typeCode="KPI_CHART_TYPE" name="showType"
						selectedValue="${model.showType }" dictCssClass="required"
						hasEmptyValue="false"></isperp:dictSelector>
				</td>
			</tr>
			<tr>
				<td class="td1">查询百分比（显示方式为仪表盘时有效）：</td>
				<td class="td2"><form:input path="queryRateValue" /></td>
			</tr>
			<tr>
				<td class="td1">目标定义：</td>
				<td class="td2"><form:input path="showTargetDef" /></td>
			</tr>
			<tr>
				<td class="td1">单位：</td>
				<td class="td2"><form:input path="showUnit" /></td>
			</tr>
			<tr>
				<td class="td1">比例尺：</td>
				<td class="td2"><form:input path="showRateMax" /></td>
			</tr>
			<tr>
				<td class="td1">线条样式：</td>
				<td class="td2"><form:textarea path="showRateLineStyle" /></td>
			</tr>
		</tbody>
	</table>
</form:form>

<isperp:buttonList>
	<button class="submit nui-mainbtn" onclick="isperp.submitForm();">保存</button>
</isperp:buttonList>


